﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class update_parkig : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TenantId",
                table: "Parkings");

            migrationBuilder.RenameColumn(
                name: "ParkingArea",
                table: "Parkings",
                newName: "ParkingName");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ParkingName",
                table: "Parkings",
                newName: "ParkingArea");

            migrationBuilder.AddColumn<int>(
                name: "TenantId",
                table: "Parkings",
                nullable: true);
        }
    }
}
